/* Navigation Bar Styles */

.navbar-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-main.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 100%;
    margin: 0;
    padding: 0 22px 0 100px;
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    position: relative;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
    margin-right: 34px; /* Same gap as between menu items */
    margin-left: 70px;
}

.navbar-logo {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

/* Text logo style */
.navbar-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #515154 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .navbar-logo-text {
    opacity: 0.8;
}

/* Desktop Menu */
.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 34px;
}

.navbar-item {
    margin: 0;
}

.navbar-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.navbar-link:hover {
    opacity: 0.65;
}

/* Navbar Content Container */
.navbar-content {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.navbar-toggle-line {
    display: block;
    width: 17px;
    height: 1px;
    background-color: #1d1d1f;
    margin: 0 auto 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar-toggle-line:last-child {
    margin-bottom: 0;
}

.navbar-toggle.active .navbar-toggle-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.navbar-toggle.active .navbar-toggle-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-mobile-menu.active {
    max-height: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.navbar-mobile-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.navbar-mobile-item {
    margin: 0;
}

.navbar-mobile-link {
    display: block;
    padding: 12px 22px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar-mobile-item:last-child .navbar-mobile-link {
    border-bottom: none;
}

.navbar-mobile-link:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 22px;
    }

    .navbar-wrapper {
        justify-content: space-between;
    }

    .navbar-content {
        flex: initial;
    }

    .navbar-brand {
        margin-right: 0;
        margin-left: 0;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .navbar-mobile-menu {
        display: block;
    }
}

@media (max-width: 340px) {
    .navbar-container {
        padding: 0 16px;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 48px;
}

/* Adjust hero section for navbar */
.hero-section-vp {
    margin-top: 48px;
}

/* Active state for current section */
.navbar-link.active,
.navbar-mobile-link.active {
    opacity: 0.5;
}