.core-navbar {
    position: fixed;
    display: flex;
    font-family: 'Satoshi', sans-serif;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    width: 90%;
    left: 5%;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    top: 1rem;
    background: transparent;
    border-radius: 20px;
    isolation: isolate;
    transform: translateZ(0); 
    will-change: transform, padding, width;
}

.nav-brand {
    display: flex;
    align-items: center;
    z-index: 2;
}

.core-icon {
    display: block;
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.nav-links a {
    font-size: 15px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    display: none;
}

.nav-links a:has(.nav-contact-btn)::after {
    display: none;
}

.nav-links a:hover::after {
    display: none;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 0.6rem;
    z-index: 2;
}

.nav-search-trigger {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-search-trigger:hover {
    color: #F26227;
    border-color: rgba(242, 98, 39, 0.45);
    background: rgba(242, 98, 39, 0.1);
    transform: translateY(-1px);
}

.nav-search-trigger svg {
    display: block;
}

.nav-contact-btn {
    background-color: transparent;
    color: #FFFFFF;
    border: 0.84px solid #FFFFFF;
    border-radius: 73px;
    padding: 10px 24.3px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15.1px;
    letter-spacing: -1.2px;
    line-height: 20.4px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 2;
    border: 0;
    background: transparent;
    padding: 0;
    flex: 0 0 auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 999px;
    transition: all 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}


.nav-effect-bg {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: -1;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}


.nav-effect-bg::before,
.nav-effect-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(72px) saturate(140%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.8s ease;
}

.nav-effect-bg::before {
    width: 240px;
    height: 240px;
    background: radial-gradient(ellipse at 35% 35%,
        rgba(255, 173, 137, 0.5) 0%,
        rgba(242, 98, 39, 0.42) 24%,
        rgba(242, 98, 39, 0.22) 48%,
        rgba(255, 138, 92, 0.08) 65%,
        transparent 78%
    );
    top: -62%;
    left: -15%;
    animation: floatOrb1 22s cubic-bezier(0.4, 0.05, 0.22, 1) infinite;
}

.nav-effect-bg::after {
    width: 220px;
    height: 220px;
    background: radial-gradient(ellipse at 60% 65%,
        rgba(255, 182, 151, 0.44) 0%,
        rgba(255, 138, 92, 0.34) 26%,
        rgba(242, 98, 39, 0.2) 50%,
        rgba(242, 98, 39, 0.08) 66%,
        transparent 80%
    );
    bottom: -58%;
    right: -10%;
    animation: floatOrb2 20s cubic-bezier(0.43, 0.05, 0.25, 1) infinite;
}


.nav-glass-layer {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: -1;
    background: rgba(16, 12, 12, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


.scrolled {
    top: 0.5rem;
    padding: 0.8rem 2rem;
    width: 80%;
    left: 10%;
    border-radius: 50px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.scrolled .nav-effect-bg {
    border-radius: 50px;
}

.scrolled .nav-effect-bg::before,
.scrolled .nav-effect-bg::after {
    opacity: 0.95;
}

.scrolled .nav-glass-layer {
    opacity: 1;
    border-radius: 50px;
    background: rgba(16, 12, 12, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}


@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(16px, -10px) scale(1.08) rotate(5deg);
    }
    45% {
        transform: translate(-8px, 12px) scale(0.94) rotate(-6deg);
    }
    70% {
        transform: translate(22px, 8px) scale(1.04) rotate(4deg);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    22% {
        transform: translate(-18px, 12px) scale(1.07) rotate(-4deg);
    }
    48% {
        transform: translate(10px, -16px) scale(0.93) rotate(5deg);
    }
    76% {
        transform: translate(-22px, -6px) scale(1.05) rotate(-3deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-effect-bg::before,
    .nav-effect-bg::after {
        animation: none;
        transform: none;
    }
}


@media screen and (max-width: 760px) {
    /* Disable dynamic navbar effects on mobile */
    .core-navbar {
        top: 0.5rem;
        padding: 0.7rem 1rem;
        width: calc(100% - 2rem);
        left: 1rem;
        border-radius: 50px;
        min-height: 62px;
        max-width: calc(100vw - 2rem);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .nav-effect-bg {
        border-radius: 50px;
    }

    .nav-effect-bg::before,
    .nav-effect-bg::after {
        opacity: 0.95;
        animation: none !important;
    }

    .nav-glass-layer {
        opacity: 1;
        border-radius: 50px;
        background: rgba(16, 12, 12, 0.5);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Prevent scrolled class from changing navbar on mobile */
    .scrolled {
        top: 0.5rem;
        padding: 0.7rem 1rem;
        width: calc(100% - 2rem);
        left: 1rem;
        border-radius: 50px;
        min-height: 62px;
    }

    .nav-effect-bg::before {
        width: 170px;
        height: 170px;
        top: -72%;
        left: -26%;
    }

    .nav-effect-bg::after {
        width: 150px;
        height: 150px;
        bottom: -70%;
        right: -24%;
    }

    .scrolled .nav-effect-bg::before,
    .scrolled .nav-effect-bg::after {
        opacity: 0.95;
    }

    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        margin-right: -4px;
    }

    .nav-actions {
        display: flex;
        gap: 0.25rem;
    }

    .nav-search-trigger {
        display: inline-flex;
        width: 44px;
        height: 44px;
        border-color: transparent;
        background: transparent;
    }

    .nav-search-trigger:hover {
        background: rgba(255, 255, 255, 0.06);
        transform: none;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.25);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 1rem;
        flex-direction: column;
        background: rgba(16, 12, 12, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: calc(100% - 2rem);
        text-align: center;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
        padding: 1rem;
        z-index: 999;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px) scale(0.98);
        box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
        gap: 0.25rem;
    }

    .nav-links a {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        font-size: 14px;
    }

    .nav-links a:not(:has(.nav-contact-btn)):hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-links .nav-contact-btn {
        width: 100%;
        min-height: 46px;
        margin-top: 0.25rem;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
}

@media screen and (max-width: 480px) {
    .core-navbar {
        width: calc(100% - 2rem);
        left: 1rem;
        padding: 0.65rem 0.9rem;
        border-radius: 50px;
        top: 0.5rem;
        min-height: 60px;
    }

    .nav-effect-bg, .nav-glass-layer {
        border-radius: 50px;
    }

    .nav-effect-bg::before {
        width: 150px;
        height: 150px;
        top: -78%;
        left: -30%;
        animation: none !important;
    }

    .nav-effect-bg::after {
        width: 132px;
        height: 132px;
        bottom: -76%;
        right: -28%;
        animation: none !important;
    }

    .scrolled .nav-effect-bg::before,
    .scrolled .nav-effect-bg::after {
        opacity: 0.95;
    }

    .scrolled {
        width: calc(100% - 2rem);
        left: 1rem;
        padding: 0.65rem 0.9rem;
        top: 0.5rem;
        min-height: 60px;
    }

    .nav-actions {
        gap: 0.15rem;
        margin-right: -0.2rem;
    }
}
