/* Navigation Bar */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

header::before {
    content: "";
    width: calc(100% + 28px);
    height: calc(100% + 30px);
    position: absolute;
    top: -20px;
    left: -14px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.96) 40%, rgba(255, 255, 255, 0.68) 68%, rgba(255, 255, 255, 0) 100%);
    filter: blur(14px);
    transition: opacity 0.3s ease;
}

.menu-open {
    overflow: hidden;
}

header.sticky::before {
    opacity: 1;
}

.navbar {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 15px 30px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
    align-items: center;
    gap: 43px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 0;
}

.logo img {
    width: 160px;
    height: auto;
    display: block;
}

.menu {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: top 0.4s ease, visibility 0.4s ease;
}

.nav-links {
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-item-enterprise {
    margin-left: 0;
}

.menu .nav-item-enterprise,
.menu .nav-item-demo {
    display: none;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.menu a {
    color: #101112;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-style: normal;
    line-height: 24px;
    font-weight: 400;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
    color: #2590A1;
}

.nav-link,
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-radius: 25px;
}

.dropdown-toggle {
    gap: 8px;
    padding: 10px 15px;
}

.nav-item-dropdown:hover .dropdown-toggle,
.nav-item-dropdown:focus-within .dropdown-toggle {
    background: #fff;
}

.dropdown-icon {
    width: 10px;
    height: 10px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-icon,
.nav-item-dropdown:focus-within .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    min-width: 174px;
    margin: 0;
    padding: 18px 22px;
    list-style: none;
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 0;
    border-radius: 0;
    text-align: left;
    line-height: normal;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: transparent;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    display: grid;
    gap: 2px;
}

.cta-button-outlined {
    width: 195px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #2590A1;
    border-radius: 25px;
    padding: 10px 0;
    color: #101112;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

.cta-button-outlined img {
    width: 13px;
    height: 13px;
    display: block;
}

.enterprise {
    display: inline-flex;
    align-items: center;
}

.cta-button-filled.header-mobile {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
}

.cta-arrow {
    display: inline-flex;
    align-items: center;
}

.cta-arrow img {
    width: 10px;
    height: 10px;
}

.hamburger-menu {
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 11;
    padding: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 40px;
    display: none;
}

.bar {
    width: 24px;
    height: 3px;
    flex: 0 0 3px;
    margin: 5px 0;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.hamburger-menu.open .bar {
    width: 24px !important;
    margin: 0 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0);
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-title,
.header-social-title,
.header-social-menu {
    display: none;
}

@media screen and (max-width: 1180px) {
    .navbar {
        gap: 28px;
    }

    .nav-links {
        gap: 15px;
    }

    .logo img {
        width: 145px;
    }

    .menu a {
        font-size: 16px;
        line-height: 22px;
    }

    .cta-button-outlined {
        width: 186px;
        /* padding: 0 12px; */
    }

    .cta-button-filled.header-mobile {
        padding: 10px 16px;
    }
}

@media screen and (max-width: 980px) {
    header::before {
        display: none;
    }

    header {
        background: rgba(255, 255, 255, 0.93);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid #D8DDDD;
    }

    header.sticky {
        background: rgba(255, 255, 255, 0.76);
        -webkit-backdrop-filter: blur(18px) saturate(120%);
        backdrop-filter: blur(18px) saturate(120%);
    }

    .navbar {
        display: flex;
        position: relative;
        justify-content: space-between;
        gap: 20px;
        padding: 12px 30px;
    }

    .logo img {
        width: 136px;
    }

    .hamburger-menu {
        display: flex;
        flex: 0 0 48px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        right: 30px;
        transform: translateY(-50%);
    }

    .menu.close {
        visibility: hidden;
    }

    .menu {
        width: 100%;
        height: calc(100vh - 72px);
        max-height: none;
        overflow-y: auto;
        position: fixed;
        text-align: left;
        padding: 0 24px 32px;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 10;
        box-sizing: border-box;
        left: 0;
    }

    .header-actions {
        display: none;
    }

    .menu .nav-item-enterprise,
    .menu .nav-item-demo {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 18px 0 0;
        width: 100%;
    }

    .nav-links li {
        display: block;
        width: 100%;
    }

    .menu a {
        color: #101112;
        font-size: 18px;
        line-height: 24px;
        text-transform: none;
        white-space: normal;
    }

    .nav-link,
    .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        padding: 10px 0;
    }

    .nav-item-dropdown:hover .dropdown-toggle,
    .nav-item-dropdown:focus-within .dropdown-toggle {
        background: transparent;
    }

    .dropdown-menu,
    .nav-item-dropdown:hover .dropdown-menu,
    .nav-item-dropdown:focus-within .dropdown-menu {
        width: 100%;
        min-width: 0;
        display: grid;
        gap: 0;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 0 8px;
        background: transparent;
        box-shadow: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu a {
        padding: 7px 0 7px 16px;
        font-size: 16px;
        line-height: 22px;
        color: #101112;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:focus-visible {
        background: transparent;
    }

    .enterprise {
        width: 100%;
        padding-top: 0;
    }

    .nav-item-enterprise {
        margin-left: 0;
    }

    .menu .cta-button-outlined {
        width: 100%;
        min-height: auto;
        justify-content: flex-start;
        gap: 8px;
        border: none;
        padding: 10px 0;
    }

    .menu .cta-button-filled.header-mobile {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        min-height: auto;
        padding: 10px 0;
        background: transparent;
        color: #101112 !important;
    }

    .cta-arrow {
        display: none;
    }

    .header-social-title {
        display: block;
        width: 100%;
        padding: 18px 0 10px;
        color: #3C4141;
        font-size: 14px;
        text-align: left;
    }

    .header-social-menu {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: nowrap;
        list-style: none;
    }

    .header-social-menu li {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .header-social-menu li a {
        width: 40px;
        height: 40px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-social-menu img {
        width: 40px;
        height: 40px;
        display: block;
        object-fit: contain;
        filter: invert(1);
    }
}

@media screen and (max-width: 500px) {
    .navbar {
        padding: 10px 30px;
    }

    .hamburger-menu {
        right: 30px;
    }

    .logo img {
        width: 126px;
    }

    .menu {
        height: calc(100vh - 68px);
        padding: 0;
    }

    .menu-title {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 14px;
        padding: 34px 30px 0;
        color: #3C4141;
    }

    .nav-links {
        align-items: flex-start;
        padding: 0 30px;
    }

    .menu a {
        font-size: clamp(16px, 4.8vw, 20px);
        line-height: 24px;
        font-weight: 400;
    }

    .dropdown-menu a {
        font-size: clamp(14px, 4.2vw, 16px);
        line-height: 22px;
    }

    .header-social-title {
        padding: 10px 30px;
    }

    .header-social-menu {
        padding: 0 30px;
    }
}
