/* exo-2-regular - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/exo-2-v26-latin_latin-ext-regular.woff2') format('woff2');
}
/* exo-2-600 - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/exo-2-v26-latin_latin-ext-600.woff2') format('woff2');
}
/* exo-2-700 - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Exo 2';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/exo-2-v26-latin_latin-ext-700.woff2') format('woff2');
}
/* inter-300 - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/inter-v20-latin_latin-ext-300.woff2') format('woff2');
}
/* inter-regular - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
/* inter-600 - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}
/* inter-700 - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/inter-v20-latin_latin-ext-700.woff2') format('woff2');
}
/* inter-800 - latin_latin-ext */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    src: url('fonts/inter-v20-latin_latin-ext-800.woff2') format('woff2');
}

section[id], header[id] {
    scroll-margin-top: 80px;
}

:root {
    --ortica-primary: #3a71af;
    --ortica-primary-dark: #2a517f;
    --ortica-primary-light: #4a91df;
    --ortica-accent: #95dca7;
    --ortica-accent-dark: #75ac87;
    --ortica-accent-darker: #557c67;
    --ortica-dark-blue: #0d1b2a;
    --ortica-bg-light: #f4f7fa;
    --ortica-gradient-primary: #4a91df;
    --ortica-gradient-accent: #95dca7;
    --ortica-gradient: linear-gradient(135deg, var(--ortica-gradient-primary) 0%, var(--ortica-gradient-accent) 100%);
    --bg-main: #ffffff;
    --bg-surface: #f8f9fa;
    --ortica-bg-light: #f4f7fa;
    --text-main: #333333;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --timeline-line: #dee2e6;
    --melkor-bg: #2e3192;
}

[data-bs-theme="dark"] {
    --ortica-primary: #3a71af;
    --ortica-primary-dark: #4a91df;
    --ortica-primary-light: #2a517f;
    --ortica-accent: #95dca7;
    --ortica-accent-dark: #6ce090;
    --ortica-accent-darker: #d8ffeb;
    --bg-main: #0d1b2a;
    --bg-surface: #1b2a3a;
    --ortica-bg-light: #161826;
    --text-main: #e0e0e0;
    --text-muted: #a0aab5;
    --text-light: #1b2a3a;
    --border-color: #2a3f54;
    --card-bg: #1b2a3a;
    --timeline-line: #2a3f54;
    --melkor-bg: #4f52b0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 1px;
}

    h1:focus {
        outline: none;
    }

.navbar {
    border-bottom: 2px solid var(--ortica-primary);
}

.navbar-logo {
    height: 52px;
    transition: height 0.3s ease;
}

.brand-text {
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 2.1rem;
    transition: font-size 0.3s ease;
}

@media (max-width: 991px) {
    .navbar-logo {
        height: 40px;
    }

    .brand-text {
        font-size: 1.6rem;
    }
}

.hero-section {
    position: relative;
    min-height: 35vh;
    padding: 50px 0;
    overflow: hidden;
}

    .hero-section::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(rgba(8, 18, 28, 0.5), rgba(8, 18, 28, 0.4));
        z-index: 2;
    }

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-bg-img {
        object-position: 5% 35%;
    }
}

.btn-primary {
    background-color: var(--ortica-primary);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: var(--ortica-primary-dark);
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
        color: white;
    }

.btn-accent {
    background-color: var(--ortica-accent-dark);
    border: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

    .btn-accent:hover {
        background-color: var(--ortica-accent-darker);
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
        color: white;
    }

.project-card {
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

    .project-card:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 35px rgba(0,0,0,0.12) !important;
        border-color: var(--ortica-accent-dark) !important;
    }

.footer-dark {
    background-color: var(--ortica-dark-blue);
    border-top: 4px solid;
    border-image: var(--ortica-gradient) 1;
}

.text-primary-tech {
    color: var(--ortica-primary);
}

.text-primary-dark {
    color: var(--ortica-primary-dark);
}

.text-accent-tech {
    color: var(--ortica-accent);
}

.text-accent-dark {
    color: var(--ortica-accent-dark);
}

.bg-primary-tech {
    background: var(--ortica-primary);
}

.bg-accent-tech {
    background: var(--ortica-accent-dark);
}

.bg-gradient-tech {
    background: var(--ortica-gradient);
}

.bg-ortica-light {
    background-color: var(--ortica-bg-light) !important;
}

.text-gradient {
    background: var(--ortica-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-shadow {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

@media (min-width: 992px) {
    .py-6 {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--mud-palette-primary-hover);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === BUBBLES === */

.story-bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bubble-circle {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-main);
    transition: all 0.4s ease-out;
}

.story-bubble:hover .bubble-circle {
    transform: scale(1.00);
    box-shadow: var(--mud-elevation-4);
}

.bubble-label {
    margin-top: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--mud-palette-text-disabled);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bubble-tatra {
    top: 5%;
    left: 5%;
}

.bubble-majolika {
    top: 10%;
    right: 5%;
}

.bubble-ortica {
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
}

.bubble-burian {
    top: 65%;
    left: 12%;
}

.bubble-zatopek {
    top: 70%;
    right: 8%;
}

.border-primary-tech {
    border: 4px solid var(--ortica-primary-dark) !important;
}

.border-accent-tech {
    border: 4px solid var(--ortica-accent-dark) !important;
}

.bubble-card {
    position: absolute;
    bottom: 170px;
    left: 50%;
    width: 240px;
    padding: 1rem;
    background-color: var(--bs-body-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    pointer-events: none;
}

.story-bubble:hover .bubble-card {
    opacity: 1 !important;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .bubble-card {
        width: max-content;
        max-width: 60vw;
    }

    .bubble-tatra .bubble-card,
    .bubble-burian .bubble-card {
        left: -10px;
        transform: translateY(15px);
    }

    .bubble-tatra:hover .bubble-card,
    .bubble-burian:hover .bubble-card {
        transform: translateY(0);
    }

    .bubble-zatopek .bubble-card,
    .bubble-majolika .bubble-card {
        left: auto;
        right: -10px;
        transform: translateY(15px);
    }

    .bubble-zatopek:hover .bubble-card,
    .bubble-majolika:hover .bubble-card {
        transform: translateY(0);
    }
}

/* === CUSTOMER TIMELINE === */

@media (min-width: 992px) {
    .process-sticky-sidebar {
        position: sticky;
        top: 120px;
    }
}

.customer-timeline {
    position: relative;
    padding-left: 20px;
}

    .customer-timeline::before {
        content: '';
        position: absolute;
        top: 30px;
        bottom: 50px;
        left: 48px;
        width: 2px;
        background-color: var(--timeline-line);
        z-index: 1;
    }

.timeline-step {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

    .timeline-step:last-child {
        margin-bottom: 0;
    }

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    margin-right: 1.5rem;
    position: relative;
    background-color: var(--card-bg);
}

.step-content {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .step-content:hover {
        transform: scale(1.02);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important;
        border-color: var(--ortica-accent-dark);
    }

@media (max-width: 991px) {
    .customer-timeline::before {
        left: 50px;
    }
}

/* === PRICING === */

.pricing-row-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .pricing-row-card:hover {
        transform: scale(1.02);
        box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08) !important;
    }

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid var(--border-color);
        padding-left: 1.5rem;
    }
}

/* === ORTICA CORE === */

.core-node {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    z-index: 10;
    position: relative;
}

.module-node {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    position: absolute;
    z-index: 10;
}

.mod-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.mod-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.mod-left {
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
}

.mod-right {
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4 !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .mod-right:hover {
        opacity: 1 !important;
        right: 3%;
    }

        .mod-right:hover ~ .line-right {
            right: calc(0% + 100px);
            opacity: 1 !important;
        }

    .mod-right::after {
        content: '';
        position: absolute;
        top: 0;
        right: -50px;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

.circuit-line {
    position: absolute;
    background: var(--border-color);
    z-index: 1;
}

.line-top {
    width: 2px;
    height: 30%;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.line-bottom {
    width: 2px;
    height: 30%;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.line-left {
    height: 2px;
    width: 30%;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.line-right {
    height: 2px;
    left: 50%;
    width: auto;
    right: calc(1% + 90px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.diagram-wrapper {
    min-height: 450px;
}

@media (max-width: 576px) {
    .core-node {
        width: 95px;
        height: 95px;
    }

        .core-node span {
            font-size: 0.7rem !important;
        }

    .module-node {
        width: 60px;
        height: 60px;
    }

        .module-node span {
            position: absolute;
            top: calc(100% + 8px);
            bottom: auto;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.75rem !important;
            white-space: nowrap;
        }

    .mod-top span {
        top: auto;
        bottom: calc(100% + 8px)
    }

    .line-right {
        right: calc(1% + 60px);
    }

    .mod-right:hover ~ .line-right {
        right: calc(0% + 70px);
    }

    .mod-right::after {
        display: none;
    }

    .diagram-wrapper {
        min-height: 320px;
        margin-bottom: 3.5rem !important;
    }
}