.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 99999;
}

@media (max-width: 768px) {
    .scroll-progress {
        display: none;
    }
}

.progress-bar-scroll {
    height: 100%;
    width: 0%;
    background: #1565C0;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(21, 101, 192, 0.5);
}

.home-header {
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    padding: 0;
    overflow: visible;
}

.home-navbar {
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 99998;
    overflow: visible;
    transform: translate(0, 0, 0);
}

.home-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(21, 101, 192, 0.1);
    transform: translateY(-1px);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 2vw;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible;
    min-height: 60px;
    position: relative;
    z-index: 1;
}

.navbar-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-right: 60px;
}

.navbar-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
}

.navbar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    overflow: visible;
    position: relative;
    min-height: 44px;
    z-index: 1;
}

.mobile-lang-demo {
    display: none;
}


.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-logo {
    height: 44px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0.95;
}

.home-menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-menu li {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
    border-radius: 10px;
    position: relative;
    letter-spacing: 0.02em;
    text-align: center;
    display: flex;
    align-items: center;
    height: 44px;
}

.home-menu li.active {
    color: var(--primary-color);
    font-weight: 600;
    transform: translateY(-1px);
}

.home-menu li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 1px;
    z-index: 3;
    pointer-events: none;
}

.home-menu li:hover::after,
.home-menu li.active::after {
    width: 70%;
}

.home-menu li.active::after {
    background: linear-gradient(90deg, #1565C0 0%, #42A5F5 100%);
    height: 3px;
    box-shadow: 0 1px 3px rgba(21, 101, 192, 0.3);
}

.home-menu li a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.home-menu li a[href*="contact-request"] {
    text-decoration: none !important;
    color: inherit !important;
}

.demo-btn {
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 50%, #0D47A1 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow:
        0 3px 12px rgba(21, 101, 192, 0.25),
        0 1px 6px rgba(21, 101, 192, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.demo-btn i {
    font-size: 1rem;
}

.demo-btn span {
    position: relative;
    z-index: 2;
}

.demo-btn:active {
    border-color: #0D47A1;
    box-shadow:
        0 2px 8px rgba(13, 71, 161, 0.4),
        0 1px 4px rgba(13, 71, 161, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== LANGUAGE DROPDOWN ===== */

.lang-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.lang-selector-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e3e6ea;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    min-width: auto;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.lang-selector-btn:hover {
    border-color: #1565C0;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.2),
        0 2px 8px rgba(21, 101, 192, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.lang-selector-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}

.lang-dropdown.active .lang-selector-btn {
    border-color: #1565C0;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.2),
        0 2px 8px rgba(21, 101, 192, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.selected-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3748;
}

.flag-icon {
    width: 26px;
    height: 20px;
    border-radius: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lang-selector-btn:hover .flag-icon {
    transform: scale(1.05);
}

.selected-lang .fa-chevron-down {
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    margin-left: 2px;
}

.lang-dropdown.active .selected-lang .fa-chevron-down {
    transform: rotate(180deg);
    color: #1565C0;
}

.lang-options-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #e3e6ea;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(21, 101, 192, 0.05),
        0 0 30px rgba(21, 101, 192, 0.1);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    padding: 0;
}

.lang-options-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(21, 101, 192, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(66, 165, 245, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.lang-dropdown.active .lang-options-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    border-color: rgba(21, 101, 192, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(21, 101, 192, 0.05),
        0 0 40px rgba(21, 101, 192, 0.15);
}

.lang-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.05) 0%, rgba(66, 165, 245, 0.03) 100%);
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
    font-size: 13px;
    font-weight: 600;
    color: #1565C0;
    position: relative;
    z-index: 1;
}

.lang-dropdown-header i {
    font-size: 14px;
    opacity: 0.8;
}

.lang-option-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21, 101, 192, 0.1), transparent);
    margin: 4px 12px;
    position: relative;
    z-index: 1;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    position: relative;
    margin: 4px 8px;
    gap: 12px;
    z-index: 1;
}

.lang-option:last-child {
    margin-bottom: 0;
}

.lang-option:hover {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.08) 0%, rgba(66, 165, 245, 0.05) 100%);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.1);
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.18) 0%, rgba(66, 165, 245, 0.12) 100%);
    box-shadow:
        0 3px 14px rgba(21, 101, 192, 0.25),
        0 1px 6px rgba(21, 101, 192, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(21, 101, 192, 0.35);
}

.lang-option .flag-icon {
    width: 28px;
    height: 21px;
    border-radius: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lang-option:hover .flag-icon {
    transform: scale(1.1);
}

.lang-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lang-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.lang-code-small {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.check-icon {
    color: #1565C0;
    font-size: 16px;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(21, 101, 192, 0.1);
    border-radius: 50%;
}

.lang-option.active .check-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    background: rgba(21, 101, 192, 0.15);
}

/* Mobile Styles */
.mobile-version .lang-selector-btn {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.mobile-version .selected-lang {
    justify-content: space-between;
}

.mobile-version .lang-text {
    font-size: 15px;
    font-weight: 600;
}

.mobile-version .lang-options-menu {
    left: 0;
    right: 0;
    min-width: auto;
    width: 100%;
}

.mobile-version .lang-option {
    padding: 16px;
}

.mobile-version .lang-option .flag-icon {
    font-size: 22px;
}

.mobile-version .lang-name {
    font-size: 16px;
}

.mobile-version .lang-code-small {
    font-size: 13px;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lang-dropdown.active .lang-options-menu {
    animation: langFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .lang-dropdown:not(.mobile-version) {
        display: none;
    }
}

.lang-option:hover .lang-native {
    color: #555;
}

/* ===== OVERLAY ===== */

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== HAMBURGER MENU ===== */

.hamburger-menu {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 5px;
    flex-direction: column;
    z-index: 1002;
    border-radius: 10px;
    background: transparent;
    border: 1.5px solid #e0e4e8;
    transition: all 0.25s ease;
}

.hamburger-menu:hover {
    border-color: #1565C0;
    background: rgba(21, 101, 192, 0.04);
}

.mobile-menu-header {
    display: none;
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: #1565C0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE LOGO ===== */

.mobile-logo-link {
    display: none;
}

.mobile-logo {
    height: 32px;
    width: auto;
}

/* ===== MOBILE MENU (900px) ===== */

@media (max-width: 900px) {

    .hamburger-menu {
        display: flex;
        z-index: 1002;
    }

    .navbar-container {
        position: relative;
        padding: 12px 16px;
    }

    /* -- Slide-in panel -- */
    .navbar-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 78vw);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex !important;
        flex-direction: column;
    }

    .navbar-center.active {
        right: 0;
    }

    .navbar-right {
        display: none;
    }

    /* -- Header with logo -- */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .mobile-logo {
        height: 26px;
    }

    .mobile-logo-link {
        display: block;
    }

    /* -- Menu items -- */
    .home-menu {
        width: 100%;
        height: auto;
        position: static;
        background: transparent;
        box-shadow: none;
        padding-top: 0;
        overflow-y: visible;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .home-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px;
        height: auto;
        margin: 0;
        list-style: none;
    }

    .home-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
        border-radius: 8px;
        font-size: 0.88rem;
        position: relative;
        background: transparent;
        border: none;
        font-weight: 500;
        color: #374151;
        cursor: pointer;
        letter-spacing: 0;
        height: auto;
        opacity: 1;
    }

    .home-menu li a {
        display: flex;
        align-items: center;
        padding: 11px 14px;
        height: auto;
        border-radius: 8px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .home-menu li a:hover {
        background: #f5f7fa;
        color: #1565C0;
    }

    .home-menu li.active {
        background: rgba(21, 101, 192, 0.06);
    }

    .home-menu li.active a {
        color: #1565C0;
        font-weight: 600;
    }

    .home-menu li::after {
        display: none;
    }

    /* -- Bottom section (lang + buttons) -- */
    .mobile-lang-demo {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        margin-top: auto;
        padding: 12px 14px;
        border-top: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    .mobile-lang-demo .lang-dropdown.mobile-version {
        width: 100%;
    }

    .mobile-lang-demo .lang-selector-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 14px;
        height: auto;
        border-radius: 8px;
        font-size: 0.85rem;
    }

    .mobile-lang-demo .lang-options-menu {
        position: relative;
        top: 8px;
        left: 0;
        right: 0;
        width: 100%;
        min-width: auto;
        border-radius: 10px;
    }

    .mobile-lang-demo .auth-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.84rem;
        border-radius: 8px;
        background: rgba(21, 101, 192, 0.06);
        border: 1.5px solid rgba(21, 101, 192, 0.2);
        color: #1565C0;
        font-weight: 600;
        justify-content: center;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .mobile-lang-demo .auth-btn:hover {
        background: rgba(21, 101, 192, 0.1);
        border-color: rgba(21, 101, 192, 0.35);
    }

    .mobile-lang-demo .demo-btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.82rem;
        border-radius: 8px;
        margin: 0;
        text-align: center;
        justify-content: center;
    }

    .lang-option {
        margin: 2px 6px;
        padding: 12px 14px;
        border-radius: 8px;
        border: none;
        transition: background 0.2s ease;
    }

    .lang-option:hover {
        background: rgba(21, 101, 192, 0.05);
    }
}

/* ===== AUTH BUTTON ===== */

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 14px;
    transition: all 0.2s ease;
    border: 1.5px solid rgba(21, 101, 192, 0.2);
    background: rgba(21, 101, 192, 0.04);
    color: #1565C0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.auth-btn:hover {
    background: rgba(21, 101, 192, 0.08);
    border-color: rgba(21, 101, 192, 0.35);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn i {
    font-size: 1rem;
}

.auth-btn span {
    font-weight: 600;
}