:root {
    --color-bg: #fbf9f4;
    --color-primary: #2c524a;
    --color-primary-dark: #1b3530;
    --color-accent: #cca462;
    --color-accent-light: #f3ede0;
    --color-text: #3c4844;
    --color-text-muted: #6b7c76;
    --color-white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-subtle: 0 12px 40px rgba(44, 82, 74, 0.04);
    --shadow-hover: 0 20px 50px rgba(44, 82, 74, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    font-weight: 500;
}

p {
    color: var(--color-primary-dark);
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 0 40px;
    z-index: 100;
    background: #fbf9f4;
    background: linear-gradient(180deg, rgba(251, 249, 244, 1) 0%, rgba(251, 249, 244, 0.81) 67%, rgba(251, 249, 244, 0) 100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.only-mobile {
    display: none;
}

.logo {
    width: 300px;
    height: 50px;
    display: block;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.menu-toggle-silent {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--color-primary-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
}

nav .btn-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

nav .btn-link:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 120;
    padding: 0;
}

.hamburger-menu svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary-dark);
}

.lang-switch {
    font-size: 13px;
    display: flex;
    gap: 6px;
    color: var(--color-text-muted);
}

.lang-switch span.active {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 0.7rem;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 82, 74, 0.15);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 82, 74, 0.25);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(44, 82, 74, 0.2);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 0.7rem;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-login {
    border: 1px solid rgba(44, 82, 74, 0.3);
    padding: 8px 24px;
    border-radius: 0.7rem;
    transition: var(--transition-smooth);
}

.btn-login:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-accent {
    background-color: var(--color-accent-light);
    color: var(--color-primary);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 0.7rem;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 82, 74, 0.15);
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.hero {
    --hero-bg-color: #fbf9f4;
    padding: 180px 0 70px 0;
    position: relative;
    text-align: center;
    background: var(--hero-bg-color);
    overflow: hidden;
}

.hero .btn-primary {
    font-size: 22px;
}

.hero-bg {
    width: 1920px;
    height: 100%;
    background-color: transparent;
    background-image: url("../images/bg-desktop_v2.webp");
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 24px auto;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px var(--color-accent-light);
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero p {
    font-size: 19px;
    max-width: 620px;
    margin: 0 auto 40px auto;
    text-shadow: 1px 1px var(--color-accent-light);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.7s ease, transform 1.7s ease;
}

.hero .btn-primary {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.hero h1.in-vp-cur,
.hero p.in-vp-cur,
.hero .btn-primary.in-vp-cur {
    opacity: 1;
    transform: translateY(0);
}

.hero .btn-primary:hover {
    transform: translateY(-2px);
    transition: transform .4s ease;
}

.section-divider {
    text-align: center;
    margin: 60px 0 40px 0;
    line-height: 1;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.divider-title {
    font-family: var(--font-serif);
    color: var(--color-primary-dark);
    font-size: 36px;
    line-height: 1;
    margin-top: -8px;
    font-weight: 500;
}

.divider-title-sm {
    font-size: 30px;
}

.line {
    position: relative;
    width: 250px;
    height: 2px;
    overflow: visible;
}

.line::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(201, 170, 91, 0.15) 10%,
        rgba(201, 170, 91, 0.9) 50%,
        rgba(201, 170, 91, 0.15) 90%,
        transparent 100%
    );
    box-shadow: 0 0 6px rgba(201, 170, 91, 0.25);
}

.journey-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}

.journey-card {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(44, 82, 74, 0.02);
    /*transition: var(--transition-smooth);*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*.journey-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(204, 164, 98, 0.2);
}*/

.journey-button-block {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 80px;
    padding: 0 16px; /* Sprječava lijepljenje za ivice ekrana na mobitelu */
    box-sizing: border-box;
}

/* Prilagođavanje samog dugmeta */
.journey-button-block .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px; /* Širina sa slike (ekvivalent jedne kartice iznad) */
    font-size: 22px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 1s ease, transform 1s ease;
}

.journey-button-block .btn-primary.in-vp-cur {
    opacity: 1;
    transform: scale(1);
}

.journey-button-block .btn-primary.in-vp-cur:hover {
    transform: scale(1) translateY(-2px);
    transition: transform .4s ease;
}

/* Opcionalno fino podešavanje fonta i visine za manje ekrane */
@media (max-width: 580px) {
    .journey-button-block .btn-primary {
        padding: 14px 20px;
        font-size: 16px;
    }
}

.card-illustration {
    height: 140px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-illustration img {
    width: 200px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.card-illustration.in-vp-cur img {
    opacity: 1;
    transform: scale(1);
}

.journey-card h3 {
    font-size: 28px;
    margin-bottom: 14px;
}

.journey-card p {
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
    min-height: 26px;
}

.journey-card h3, 
.journey-card p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.journey-card h3.in-vp-cur, 
.journey-card p.in-vp-cur {
    opacity: 1;
    transform: translateY(0);
}

.interactive-quote-section {
    background-color: var(--color-accent-light);
    border-radius: 1rem;
    padding: 16px;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.interactive-quote-section.in-vp-cur {
    opacity: 1;
    transform: translateY(0);
}

.quote-icon {
    color: #e7b052;
    position: absolute;
    top: 20px;
    left: 30px;
}

.quote-icon svg {
    width: 66px;
    height: 66px;
}

.quote-title {
    font-size: 34px;
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
    font-weight: 600;
    font-family: var(--font-serif);
}

.quote-question {
    font-size: 18px;
    color: var(--color-primary-dark);
    max-width: 700px;
    margin: 0 auto 24px auto;
}

.bottom-line {
    position: relative;
    width: 140px;
    height: 2px;
    overflow: visible;
    left: 50%;
    margin-left: -70px;
    bottom: 12px;
}

.bottom-line::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(201, 170, 91, 0.15) 10%,
        rgba(201, 170, 91, 0.9) 50%,
        rgba(201, 170, 91, 0.15) 90%,
        transparent 100%
    );
    box-shadow: 0 0 6px rgba(201, 170, 91, 0.25);
}

.compass-block {
    border-radius: 1rem;
    padding: 32px 12px 0;
    margin-bottom: 80px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    overflow: hidden;
    background: radial-gradient(circle, #fffaf0 0%, #e5ddcb 100%);
    border: 1px solid rgba(218, 207, 189, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.compass-cell-left {
    width: 330px;
}

.compass-cell-middle {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}

.compass-cell-middle.in-vp-cur {
    opacity: 1;
    transform: translateX(0);
}

.compass-visual-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    position: relative;
}

.compass-visual-container img {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.6) rotate(90deg);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.compass-cell-left.in-vp-cur .compass-visual-container img {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.compass-cell-right {
    display: flex;
    align-items: end;
    width: 260px;
}

.compass-cell-right img {
    width: 100%;
    height: auto;
    opacity: 0;
    transform: translate(60px, 64px) scale(.6);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.compass-cell-right.in-vp-cur img {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.compass-block h2 {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
}

.compass-block .subtitle {
    font-size: 20px;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.compass-list {
    list-style: none;
    margin-bottom: 28px;
}

.compass-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-size: 15px;
    font-weight: 500;
}

.compass-list li::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 17px;
    height: 17px;
    background-image: url("../images/leaf.svg");
    background-size: cover
}

.tools-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 100px;
}

.tool-item {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    box-shadow: var(--shadow-subtle);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.tool-item.in-vp-cur {
    opacity: 1;
    transform: translateY(0);
}

.no-touchscreen .tool-item:hover {
    transition: all 0.5s ease;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tool-icon-cell img {
    width: 84px;
    height: 84px;
    opacity: 0;
    transform: scale(0.5) translateY(30px);
    transition: opacity 2s ease, transform 2s ease;
}

.tool-item.in-vp-cur .tool-icon-cell img {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.tool-content {
    margin-bottom: 10px;
    text-align: center;
}

.tool-icon-cell {
    margin-bottom: 16px;
}

.tool-content-cell h3 {
    font-family: var(--font-serif);
    font-size: 25px;
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.tool-content-cell p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.tool-buttons {
    text-align: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(27, 53, 48, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 70px rgba(0,0,0,0.15);
    text-align: center;
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-card h3 {
    font-size: 26px;
    margin-bottom: 16px;
}

.modal-card p {
    margin-bottom: 24px;
    font-size: 15px;
}

.breath-bubble {
    width: 100px;
    height: 100px;
    background-color: var(--color-accent-light);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--color-primary-dark);
    font-weight: 500;
    transition: transform 4s ease-in-out;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

footer {
    background-color: var(--color-primary-dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--color-accent-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(251, 249, 244, 0.69);
}

@media(max-width: 1920px) {
    .hero-bg {
        width: 100%;
        background-size: cover;
        background-position: center;
    }
}

@media(min-width: 1921px) {
    .hero-bg {
        border-radius: 1rem;
    }
    .hero-bg::after, 
    .hero-bg::before {
        content: "";
        height: 100%;
        position: absolute;
        top: 0;
        width: 166px;
        z-index: 1;
        pointer-events: none;
        transition: background .6s linear;
    }
    .hero-bg::before {
        background: linear-gradient(90deg, var(--hero-bg-color) 0%, rgba(0, 0, 0, 0) 100%);
        left: 0;
    }
    .hero-bg::after {
        background: linear-gradient(270deg, var(--hero-bg-color) 0%, rgba(0, 0, 0, 0) 100%);
        right: 0;
    }
}

@media(min-width: 878px) {
    .interactive-quote-section::after {
        content: "";
        position: absolute;
        z-index: 2;
        bottom: 10px;
        right: 1px;
        width: 96px;
        height: 111px;
        background: transparent url("../images/image_5.webp") no-repeat 0 0 / 96px 111px;
        opacity: 0;
        transform: translate(28px, 40px) scale(.4);
        transition: opacity 1.2s ease, transform 1.2s ease;
        transition-delay: 300ms;
    }

    .interactive-quote-section.in-vp-cur::after {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@media (max-width: 992px) {
    .line {
        width: 180px;
    }
    .divider-title {
        font-size: 30px;
    }
    .journey-grid, 
    .tools-row {
        flex-direction: column;
        gap: 24px;
    }
    .compass-block {
        display: block;
        padding: 30px;
    }
    .compass-cell-left, 
    .compass-cell-middle {
        display: block;
        width: 100%;
        padding: 0;
    }
    .compass-cell-left {
        margin-bottom: 30px;
    }
    .compass-cell-right {
        display: none;
    }
    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 877px) {
    .interactive-quote-section {
        padding-top: 24px;
    }
    .quote-title {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .quote-icon {
        display: none;
        content: none;
    }
    .quote-question {
        margin-bottom: 34px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 18px 0;
    }
    .logo {
        width: 215px;
        height: auto;
    }
    .hamburger-menu {
        position: fixed;
        z-index: 121;
        right: 20px;
        top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-active .menu-toggle-silent {
        display: block;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    nav {
        position: fixed;
        z-index: 2;
        top: 0;
        right: -280px;
        width: 280px;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: start;
        gap: 20px;
        padding: 86px 40px 40px;
        transition: 0.35s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
        visibility: hidden;
    }
    .menu-active nav {
        right: 0;
        visibility: visible;
    }
    nav a {
        font-size: 20px;
    }
    .only-mobile.only-mobile-b {
        display: block;
    }
    .only-mobile.only-mobile-i {
        display: inline;
    }
    .only-mobile.only-mobile-ib {
        display: inline-block;
    }
    .lang-switch {
        margin-top: 20px;
    }
    .hamburger-menu svg {
        transition: all 300ms ease;
    }
    .menu-active .hamburger-menu svg {
        transform: scale(1.2);
    }
    .menu-hm-line {
        transition: all 300ms ease;
    }
    .menu-active .menu-hm-line.line2 {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-30px);
    }
    .menu-active .menu-hm-line.line1 {
        transform: translateX(7px) rotateZ(45deg);
    }
    .menu-active .menu-hm-line.line3 {
        transform: translate(-10px, 8px) rotateZ(-45deg);
    }
    .hero-bg {
        background-image: url("../images/bg-desktop_v4_mobile.webp");
    }
    .compass-buttons {
        text-align: center;
    }
    .hero .btn-primary {
        font-size: 18px;
    }
    .divider-title {
        font-size: 28px;
    }
    .line, 
    .line-star {
        display: none !important;
    }
}